package cn.edu.neu.springbootdemo.service.impl;

import cn.edu.neu.springbootdemo.mapper.ScreensMapper;
import cn.edu.neu.springbootdemo.model.Movie;
import cn.edu.neu.springbootdemo.model.Screens;
import cn.edu.neu.springbootdemo.service.ScreensService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScreensServiceImpl implements ScreensService {
    @Autowired
    private ScreensMapper mapper;

    @Override
    public List<Screens> ShowScreens() {
        return mapper.ShowScreens();
    }

    @Override
    public void addScreens(Screens screens) {
        mapper.addScreens(screens);
    }

    @Override
    public Boolean deleteService(int parseInt) {
        return mapper.deleteService(parseInt);
    }

    @Override
    public void updateScreens(Screens screens) {
       mapper.updateScreens(screens);
    }

    @Override
    public List<Screens> getfindScreens(Screens screens) {
        return mapper.getfindScreens(screens);
    }

    @Override
    public Screens findById(int screens_id) {
        return mapper.findById(screens_id);
    }
}
